package gunPowderMod.network;

import gunPowderMod.GunPowderMod;
import gunPowderMod.block.renderer.FuseRenderer;
import gunPowderMod.entities.MiningDynamitePrimed;
import gunPowderMod.entities.renderer.MiningDynamitePrimedRenderer;
import cpw.mods.fml.client.FMLClientHandler;
import cpw.mods.fml.client.registry.RenderingRegistry;
import net.minecraft.src.World;
import net.minecraftforge.client.MinecraftForgeClient;

public class ClientProxy extends CommonProxy{
	
	@Override
	public void registerRenderInformation(){
		MinecraftForgeClient.preloadTexture(GunPowderMod.blockTexturePath);
		MinecraftForgeClient.preloadTexture(GunPowderMod.itemTexturePath);
		RenderingRegistry.registerEntityRenderingHandler(MiningDynamitePrimed.class, new MiningDynamitePrimedRenderer());
		RenderingRegistry.registerBlockHandler(1500, new FuseRenderer());
	}

	@Override
	public void registerTileEntitySpecialRenderer(){
		
	}

	@Override
	public World getClientWorld(){
		return FMLClientHandler.instance().getClient().theWorld;
	}
	
}
